/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ceair.flight.refund.service.notification.impl;

import com.ceair.muservice.common.enums.message.TemplateNameEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author youguilin
 */
@Service("smsNotification")
class SmsNotification extends AbstractNotification {

    private static final Logger LOG = LoggerFactory.getLogger(SmsNotification.class);

    private static final String EN_US = "en_US";

    private final Map<String, Object> constantSmsArgs = new HashMap<>(10);

    @PostConstruct
    void inital() {
        //Sms constants
        constantSmsArgs.put(SITE, EN_US);
        //mobile set to China
        constantSmsArgs.put(IS_INTER, "0");
    }

    @Override
    TemplateNameEnum getTemplateName(Map args) {
        return TemplateNameEnum.SIMPLE_EMS;
    }

    @Override
    Map<String, Object> getDefaultValue(Map args) {
        return constantSmsArgs;
    }

}
